package com.yhos.platform.oopston.web;

import com.yhos.platform.oopston.core.annotation.AspectStarter;
import com.yhos.platform.oopston.core.aop.BaseParamsAspect;
import com.yhos.platform.oopston.core.aop.BaseSecretAspect;
import com.yhos.platform.oopston.core.aop.BaseValidatorAspect;
import com.yhos.platform.oopston.core.web.BodyReaderFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import java.util.Timer;
import java.util.TimerTask;

@SpringBootApplication
@AspectStarter({BaseSecretAspect.class, BaseValidatorAspect.class, BaseParamsAspect.class})
@ComponentScan(value = "com.yhos")
@MapperScan("com.yhos.platform.oopston.mapper")
@ServletComponentScan(basePackageClasses = BodyReaderFilter.class)
public class BaseApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseApplication.class, args);

//		Timer timer = new Timer();
//
//		public class Task extends TimerTask {
//　　			public void run() {
//			　　System.out.println("定时任务执行");
//			　　}
//			public void schedule(TimerTask task,long delay,long {
//				System.out.println("定时任务执行");
//			}






	}



}